<template>
    <div class="App">
        <router-view v-slot="{ Component }">
            <keep-alive>
                <component :is="Component" v-if="route.meta.keepAlive" />
            </keep-alive>
            <component :is="Component" v-if="!route.meta.keepAlive" />
        </router-view>
    </div>
</template>

<script setup>
import { useRoute } from "vue-router";
const route = useRoute();
</script>

<style lang="less">
@import url("//at.alicdn.com/t/font_2633843_26zezk4vra8.css");
</style>
